package vn.com.pavibook.admin.service;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;

import vn.com.pavibook.domain.model.AudioBook;
import vn.com.pavibook.domain.model.PagingInfo;
import vn.com.pavibook.domain.model.SearchResult;
import vn.com.pavibook.model.vo.AudioBookVO;

public interface AudioBookService {

	boolean uploadAudio(AudioBookVO audioBookVO, String username, HttpServletRequest request) throws IllegalStateException, IOException;

	void save(AudioBook audioBook);

	SearchResult<AudioBook> getAudioBookByPushlisher(String username, PagingInfo pagingInfo);

	void deleteAudioBook(int id);

	SearchResult<AudioBook> getAudioBookById(int id);

	SearchResult<AudioBook> getListAudioBookByUsername(String username,
			PagingInfo pagingInfo, String keyword);

}
